import { request } from "../request";

const requestUrl = '/core/user/catalogue/personal'

export function catalogueList(params) {
    return request({
        url: requestUrl + '/list',
        method: 'get',
        params
    })
}

export function catalogueAdd(params) {
    return request({
        url: requestUrl + '/add',
        method: 'post',
        data: params
    })
}

export function updateCatalogueName(params) {
    return request({
        url: requestUrl + '/updateName',
        method: 'post',
        data: params
    })
}

export function catalogueDelete(params) {
    return request({
        url: requestUrl + '/delete/' + params
    })
}

export function catalogueBatchDelete(params) {
    return request({
        url: requestUrl + '/batchDelete',
        method: 'post',
        data: params
    })
}